package com.dliu.javadesign.behaviour.interpreter;

/**
 * @author yanglei
 * date 2021/4/23 13:58
 */
public interface JDBCExpression {
    boolean isSupport(String selectStr);
}

class MySql implements JDBCExpression{
    @Override
    public boolean isSupport(String selectStr) {
        return "Mysql".equalsIgnoreCase(selectStr);
    }
}

class Oracle implements JDBCExpression{
    @Override
    public boolean isSupport(String selectStr) {
        return "Oracle".equalsIgnoreCase(selectStr);
    }
}

class Rule{

}
